package com.csjbot.blackgaga.model.http.factory;

import com.csjbot.blackgaga.model.http.consult.ConsultImpl;
import com.csjbot.blackgaga.model.http.consult.IConsult;
import com.csjbot.blackgaga.model.http.product.IProduct;
import com.csjbot.blackgaga.model.http.product.ProductProxy;
import com.csjbot.blackgaga.model.http.product.TransactionOrder.TransactionOrderImpl;

/**
 * Created by jingwc on 2017/9/18.
 */

public class ServerFactory {

    public static <T extends IProduct> T createProduct(){
        return (T)ProductProxy.newProxyInstance();
    }

    public static <T extends IConsult> T createConsult(){
        return (T)new ConsultImpl();
    }

    public static <T extends IProduct> T createProductDetail(){
        return (T)new TransactionOrderImpl();
    }
}
